﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZX.Web.UI.Controls;
using ZX.DBModule;
using ZX.BLL.Extend;
using ZX.Common;
using ZX.CRM.Library;
namespace ZX.WebApp.Crm.MeetingArrange
{
    public partial class AddProductLayoutRole : BasePage
    {
        /// <summary>
        /// 获取产品名称
        /// </summary>
        private string _productName;
        public string ProductName
        {
            get
            {
                return _productName;
            }
            set
            {
                _productName = value;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            BaseEntity instance = ZX.Common.Globals.getEntity("CrmProductLayoutRole") as BaseEntity;
            this.EditTemplate.Text = ZX.WebApp.Crm.Common.CreateJson.CreateHtml(instance, null);
            string courseLayoutId = this.GetStringFromQueryString("LayoutId", "");//产品规划ID
            BaseBussnies<CrmProductLayout> binstance = new BaseBussnies<CrmProductLayout>();
            CrmProductLayout courseLayout = new CrmProductLayout();
            binstance.entity = courseLayout;
            courseLayout = binstance.GetEntityById<CrmProductLayout>(Guid.Parse(courseLayoutId));
            ProductName = courseLayout.CourseLayoutName;
        }
        
    }
}